package com.lhf.springcloud.impl;

import com.lhf.springcloud.dao.TeacherDao;
import com.lhf.springcloud.entity.TeacherData;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @ClassName: StorangeServiceImpl
 * @Description:
 * @Author: liuhefei
 * @Date: 2019/4/1
 * @blog: https://www.imooc.com/u/1323320/articles
 **/
@Service
public class TeacherServiceImpl {


    @Autowired
    private TeacherDao teacherDao;

    public void addCourse(List<TeacherData> course) {
        for (int i=0;i<course.size();i++){
            teacherDao.addCourse(course.get(i));
        }

    }
}
